<template>
  <view class="box">
    <scroll-view scroll-y class="left">
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
      <view>131231</view>
    </scroll-view>
  </view>
</template>

<script>
import { mapState } from "vuex";
export default {
  computed: {
    ...mapState(["age"]),
  },
  onLoad(options) {
    console.log("url参数-name：" + options.name);
    console.log("vuex数据-age：" + this.age);
  },
};
</script>

<style lang="scss">
page {
  height: 100%;
  border: 1px solid red;
}

.box {
  height: 100%;

  .left {
    width: 80px;
    height: 100%;
  }


}

scroll-view {
  height: 100%;

  view {
    height: 60px;
  }
}
</style>
